package edu.zuoyelianxi;

import java.util.Spliterator;

public class forxunhuan {
    public static void main(String[] args) {
        int a = 0, sum = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 2 != 0)
                sum += i;
            else
                a += i;
        }
        System.out.println(sum);
        System.out.println(a);
    }
}
